package com.derbysoft.lowcostadapter.commons.repository;

import com.derbysoft.common.paginater.Paginater;
import com.derbysoft.lowcostadapter.commons.model.ReservationLog;
import com.derbysoft.lowcostadapter.web.action.admin.transactionlog.RequestLogCondition;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by: jason
 * Date: 2012-09-18
 */
public interface ReservationLogRepository {
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    ReservationLog save(ReservationLog reservationLog);

    void findByCondition(RequestLogCondition requestCondition, Paginater paginater);

    ReservationLog findById(Long id);

    List<ReservationLog> findByErsp(String erspNo);
}
